Learn RPGs in GameMaker: Studio by Ben Tyers

Learn RPGs in GameMaker: Studio by Ben Tyers

Author:Ben Tyers
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


draw_text(60,582,"XP: "+string(draw_xp));

draw_set_colour(c_teal);

for (var loop = 0; loop < draw_xp; loop += 1)

{

draw_line(135+loop,577,135+loop,587);

}

draw_set_colour(c_black);

draw_roundrect(135,577,230,587,true);

draw_roundrect(134,576,231,588,true);

draw_set_colour(c_yellow);

//level

draw_set_halign(fa_center);

draw_text(150,524,"Level: "+string(draw_level));

draw_set_halign(fa_left);

Listing 14-9.Drawing the Main HUD Info

The fifth draws the player’s gold; see Listing 14-10.

///draw gold

draw_text(100,638,"Gold: "+string(global.gold));

Listing 14-10.Drawing the Gold as Text



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.